package cn.gok.plusdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林
 * @since 2022-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Clazz implements Serializable {

    private static final long serialVersionUID = 1L;

        /**
     * 主键id
     */
         @TableId(value = "cid", type = IdType.AUTO)
    private Long cid;

        /**
     * 班级名称
     */
         private String cname;

        /**
     * 版本
     */
         @Version
    private Integer version;

        /**
     * 标识删除
     */
         @TableLogic
    private Integer delted;

        /**
     * 创建时间
     */
         @TableField(fill = FieldFill.INSERT)
    private Date createTime;

        /**
     * 更新时间
     */
         @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
         @TableField(exist = false)

    private List<Student> studentList;
}
